usb: gadget: config: fix unaligned access issues
authorTroy Kisky <[email protected]>
Wed, 11 Sep 2013 10:24:48 +0000 (18:24 +0800)
committerMarek Vasut <[email protected]>
Tue, 24 Sep 2013 15:51:35 +0000 (17:51 +0200)
commit898d686eead1df09970757dfd469b659d5a208be
tree8f7b782bdb5f5726f2183a47a4812bc542890872
parent7a813d5b7d7e8dce209999f460d962d41a0b8a3e
usb: gadget: config: fix unaligned access issues

As seen with codesourcery compiler 2010q1, the buf pointer in
usb_request structure is not aligned on 4 bytes boundary causing
data aborts in eth_setup -> conf_buf -> usb_gadget_config_buf.
Make it as align access to fix this issue.

Signed-off-by: Troy Kisky <[email protected]>
[[email protected]: add commit message]
Signed-off-by: Bo Shen <[email protected]>
drivers/usb/gadget/config.c